package cn.smvc.sys.dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import cn.smvc.sys.entity.SysUser;

@Repository
public interface SysUserDao {
	
	public List<SysUser> findAll(SysUser user) throws SQLException;
	
	public SysUser findOne(String id) throws SQLException;
	
	public int save(SysUser user) throws SQLException;
	
	public int update(SysUser user) throws SQLException;
	
	public int delete(String id) throws SQLException;
	
	public int count(String where) throws SQLException;
	
	public List<SysUser> findBySql(String sql, Object...objects) throws SQLException;
	
	public List<SysUser> findByWhere(String where) throws SQLException;
	
	public List<SysUser> findPage(String where, int page, int limit, String orderBy) throws SQLException;
	
}
